﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace VerficationsWPF.HWControls
{
    /// <summary>
    /// RoundedBoxItem.xaml 的交互逻辑
    /// </summary>
    public partial class RoundedBoxItem : UserControl
    {
        public RoundedBoxItem()
        {
            InitializeComponent();
        }

        SolidColorBrush brush1 = new SolidColorBrush(Color.FromArgb(200, 240, 244, 255));
        Brush brush2 = new SolidColorBrush(Color.FromArgb(200, 220, 224, 235));
        
        private void DockPanel_MouseEnter(object sender, MouseEventArgs e)
        {
            brush2 = dockMain.Background;
            dockMain.Background = brush1;
        }

        private void DockPanel_MouseLeave(object sender, MouseEventArgs e)
        {
            dockMain.Background = brush2;
        }
    }
}
